package com.cn.ZhiKeDianShang.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.cn.ZhiKeDianShang.R;
import com.cn.ZhiKeDianShang.base.BaseFragment;
import com.cn.ZhiKeDianShang.presenter.MineFragmentPresenter;
import com.cn.ZhiKeDianShang.presenter.view.MineFragmentView;
import com.cn.ZhiKeDianShang.util.ProgressDialogFragment;

/**
 * 我的
 * Created by chengaofu on 2017/6/21.
 */

public class EmptyMineFragment extends BaseFragment<MineFragmentView, MineFragmentPresenter> implements MineFragmentView {



    private ProgressDialogFragment mProgressDialog;


    @Override
    protected void initViewsAndEvents() {

    }

    private void supportRequestWindowFeature(int featureActionBarOverlay) {
    }


    @Override
    public void onResume() {
        super.onResume();

    }

    @Override
    protected int getErrorLayoutId() {
        return R.layout.fragment_mine;
    }

    @Override
    protected int getNormalLayoutId() {
        return R.layout.fragment_mine;
    }

    @Override
    protected MineFragmentPresenter createPresenter() {
        return new MineFragmentPresenter(getContext(), this);
    }


    @Override
    public void requestFailed(String message) {
        if (mProgressDialog != null) {
            mProgressDialog.dismiss();
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);

    }


}